package com.example.guideapp.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.format.Time;

import com.example.guideapp.R;

import cn.aigestudio.datepicker.views.DatePicker;

public class CalendarDateActivity extends AppCompatActivity {

    private DatePicker datePicker;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_calendar_date);

        datePicker = (DatePicker) findViewById(R.id.dp);

        Time time = new Time("GMT+8");
        time.setToNow();
        int year = time.year;
        int month = time.month;

        datePicker.setDate(year,month+1);
    }
}
